package se.wangs.visitor.impl;

import se.wangs.visitor.Acceptable;
import se.wangs.visitor.Product;
import se.wangs.visitor.Visitor;

import java.time.LocalDate;

/**
 * * -- coding: UTF-8 -- *
 *
 * @author wangs
 * @date 2023/12/18 9:47
 * @description 酒水
 */
public class Wine extends Product implements Acceptable {
    public Wine(String name, LocalDate producedDate, float price) {
        super(name, producedDate, price);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
